import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import './style/main.css'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'

// 引入Ant Design Vue样式
import 'ant-design-vue/dist/reset.css'

// 引入Ant Design Vue组件
import Antd from 'ant-design-vue'
import { ConfigProvider } from 'ant-design-vue'

const app = createApp(App)

dayjs.locale('zh-cn')
app.use(createPinia())
app.use(router)
// Ant Design Vue 4.x版本不需要传递options参数
app.use(Antd)
// 全局设置语言
app.use(ConfigProvider, { locale: zhCN })

app.mount('#app')
